package com.huang.app.demo6

import android.os.Bundle
import android.view.LayoutInflater
import com.alibaba.android.arouter.facade.annotation.Route
import com.blankj.utilcode.util.BarUtils
import com.huang.app.BR
import com.huang.app.R
import com.huang.app.databinding.ActivityDemo6Binding
import com.huang.app.demo6.vm.Demo6ViewModel
import com.huang.mvvm.activity.BaseActivity
import com.huang.mvvm.control.Control
import com.huang.router.router.AppRouter

@Route(path = AppRouter.DEMO6_ACTIVITY)
@Control(Demo6Controllable::class)
class Demo6Activity: BaseActivity<ActivityDemo6Binding, Demo6ViewModel>() {
    override fun getLayoutId(inflater: LayoutInflater, savedInstanceState: Bundle?): Int = R.layout.activity_demo6

    override fun getViewModelId(): Int =BR.viewModel

    override fun initView() {
        super.initView()
        BarUtils.addMarginTopEqualStatusBarHeight(binding.viewStatusBar)
    }
}